package ddd.ajava.chapter8.question2;

public class Student {
	private int id;
	private String name;
	private String grade;
	private String sex;
	private String major;
	private String academy;
	
	public Student(){
		
	}
	
	public Student(int id,String name,String grade,String sex,String major,String academy){
		this.id=id;
		this.name=name;
		this.grade=grade;
		this.sex=sex;
		this.major=major;
		this.academy=academy;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getMajor() {
		return major;
	}
	public void setMajor(String major) {
		this.major = major;
	}
	public String getAcademy() {
		return academy;
	}
	public void setAcademy(String academy) {
		this.academy = academy;
	}
	
	public String toString(){
		return "学号："+id+"  姓名："+name+"  年级："+grade+"  性别："+sex+"  专业："+major+"  学院："+academy;
	}
}
